//
//  NSDictionary+Extend.h
//  XLDoctor
//
//  Created by longma on 2018/12/27.
//  Copyright © 2018年 XLH. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface UITextField (MJUI)

/// 标题颜色
@property (nonatomic, strong)IBInspectable NSString *mj_titleColorName;

/// placeholderColor 颜色
@property (nonatomic, strong)IBInspectable NSString *mj_placeholderColorName;

/// 长度限制
@property (nonatomic, assign)IBInspectable NSInteger mj_limitedNumber;

/// placeholderColor 颜色
@property (nonatomic, strong) UIColor *mj_placeholderColor;

/// 禁用第三方键盘
@property (nonatomic, assign) BOOL mj_disableThirdPartyKeyboard;

/// 允许输入文本
/// @param aString “12345678”
- (void)mj_shouldChangeString:(NSString *)aString;

/// 限制文本输入
/// @param aString “12345678”
- (void)mj_ignoreString:(NSString *)aString;

/// 自定义 textField 的清除按钮
/// @param image image
- (void)mj_setClearButtonWithImage:(UIImage *)image;

/// 弹出键盘
- (void)mj_becomeFirstResponder;

@end

@interface UITextField (Language)
/// 语言
@property (nonatomic, strong)IBInspectable NSString *mj_pLocalizable;

/// 语言
@property (nonatomic, strong)IBInspectable NSString *mj_localizable;
@end

NS_ASSUME_NONNULL_END
